package short_semester.questionnaire_planet.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("api")
public class TestController {
    
    @PostMapping("api")
    public void testPost(HttpSession session){
        session.setAttribute("key","value");
        session.getAttribute("key");
    }
}
